home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 2.iso
/
STUTTGART
/
LANG
/
C
/
GCC
/
V2-4-5
/
GCC2
/
Examples
/
Makefile
Wrap
Makefile
|
1994-10-04
|
1KB
|
64 lines
# Project: gcc-examples
# Toolflags:
GCCflags = -v
Linkflags = -aif -o $@
LIBS = gpp:o.c++ gcc:o.gcc Unix:o.UnixLib
Dependencies = -mamu
CC = gcc $(GCCflags)
Link = ld $(LinkFlags) $(Libs)
.SUFFIXES: .o .c .cc .s .i
.c.o:; $(CC) $(Dependencies) -c -o $@ $<
.cc.o:; $(CC) $(Dependencies) -c -o $@ $<
.cc.s:; $(CC) $(Dependencies) -S -o $@ $<
.c.s:; $(CC) $(Dependencies) -S -o $@ $<
.cc.i:; $(CC) $(Dependencies) -E -o $@ $<
.c.i:; $(CC) $(Dependencies) -E -o $@ $<
#############################################################################
# Final targets
all: HelloW Example1 HelloW++
clean:
remove HelloW
remove Example1
remove HelloW++
-wipe o.* ~v~c
HelloW: HelloW.o
$(Link) HelloW.o
Example1: Example1a.o Example1b.o Example1c.o
$(Link) Example1a.o Example1b.o Example1c.o
HelloW++: HelloW++.o
$(Link) HelloW++.o -LGPP: -lc++
# Dynamic dependencies:
o.HelloW: c.HelloW
o.HelloW: Unix:h.stdio
o.HelloW: Unix:h.stdarg
o.HelloW: Unix:sys.h.types
o.Example1a: c.Example1a
o.Example1a: Unix:h.stdio
o.Example1a: Unix:h.stdarg
o.Example1a: Unix:sys.h.types
o.Example1a: h.Example1b
o.Example1b: c.Example1b
o.Example1b: Unix:h.stdio
o.Example1b: Unix:h.stdarg
o.Example1b: Unix:sys.h.types
o.Example1b: h.Example1c
o.Example1c: c.Example1c
o.Example1c: Unix:h.stdio
o.Example1c: Unix:h.stdarg
o.Example1c: Unix:sys.h.types
o.HelloW++: cc.HelloW++
o.HelloW++: GPP:h.iostream
o.HelloW++: GPP:h.streambuf
o.HelloW++: GPP:h._G_config